package me.aip.mov.controller;


import me.aip.mov.annotation.GlobalResult;
import me.aip.mov.annotation.PassToken;
import me.aip.mov.entity.Advise;
import me.aip.mov.service.IAdviseService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author aip9105
 * @since 2022-01-27
 */
@RestController
@RequestMapping("/advise")
@GlobalResult
@PassToken

public class AdviseController {
    @Autowired
    IAdviseService iAdviseService;

    @PostMapping("create")
    public void create(@RequestBody Advise advise){
        iAdviseService.save(advise);
    }

}
